<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import cslinit from '@/csl-init';
import scsinit from './scs-init';
import settings from '@/settings'
import sa from './sa-frame/sa';
import router from './router';
export default {
  name: 'App',
  created() {
    // 开始初始化
    switch (window.location.pathname) {
      case '/':
        scsinit(window.location.pathname)
        break;
      case settings.scs_url:
        cslinit(window.location.pathname);
        break;
      case settings.login_url:
        scsinit(window.location.pathname);
        break;
      case settings.sbs_regist:
        scsinit(window.location.pathname);
        break;
      default:
        if (sa.$sys.getCurSer().isAuth === 1) {
          cslinit(window.location.pathname);
        } else {
          scsinit(window.location.pathname);
        }
        break;
    }
  }
}
</script>
